package com.ruoyi.mall.service;

import com.ruoyi.mall.domain.GoodsSpecificationsDetail;
import com.ruoyi.mall.domain.vo.GoodsSpecificationsDetailVo;
import com.ruoyi.mall.domain.bo.GoodsSpecificationsDetailBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 商品规格明细Service接口
 *
 * @author ruoyi
 * @date 2024-04-24
 */
public interface IGoodsSpecificationsDetailService {

    /**
     * 查询商品规格明细
     */
    GoodsSpecificationsDetailVo queryById(Long goodsSpecificationsDetailId);

    /**
     * 查询商品规格明细列表
     */
    TableDataInfo<GoodsSpecificationsDetailVo> queryPageList(GoodsSpecificationsDetailBo bo, PageQuery pageQuery);

    /**
     * 查询商品规格明细列表
     */
    List<GoodsSpecificationsDetailVo> queryList(GoodsSpecificationsDetailBo bo);

    /**
     * 新增商品规格明细
     */
    Boolean insertByBo(GoodsSpecificationsDetailBo bo);

    /**
     * 修改商品规格明细
     */
    Boolean updateByBo(GoodsSpecificationsDetailBo bo);

    /**
     * 校验并批量删除商品规格明细信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
